package com.twu.biblioteca;

import java.io.BufferedReader;
import java.io.Console;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * Created by utsabban on 2/25/14.
 */
public class InputReader {
    public static String readInput()
    {
        BufferedReader bufferedReader=new BufferedReader(new InputStreamReader(System.in));
        String inputString= null;
        try {
            inputString = bufferedReader.readLine();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return inputString;

    }

    public static String readPassword()
    {
        Console console=System.console();

        if (console!=null)
            return new String(console.readPassword());

        return null;
    }
}
